import { FloatButton } from 'antd';
import { VerticalAlignBottomOutlined } from '@ant-design/icons';
import DefaultLayout from "./containers/DefaultLayout";

const App = () => {
  const scrollToBottom = () => {
    window.scrollTo({
      top: document.documentElement.scrollHeight,
      behavior: 'smooth'
    });
  };

  return (
    // 必须用单个父元素包裹
    <>
      <DefaultLayout />
      <FloatButton.BackTop 
        visibilityHeight={100} // 滚动100px后显示按钮
        style={{ right: 24, bottom: 80 }} 
      />
    </>
  )
};

export default App;